.class final Ljavax/microedition/lcdui/Display$1;
.super Ljava/lang/Object;
.source "Display.java"

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field private final this$0:Ljavax/microedition/lcdui/Display;

.field private final val$nextDisplayable:Ljavax/microedition/lcdui/Displayable;


# direct methods
.method constructor <init>(Ljavax/microedition/lcdui/Display;Ljavax/microedition/lcdui/Displayable;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 494
    iput-object p1, p0, Ljavax/microedition/lcdui/Display$1;->this$0:Ljavax/microedition/lcdui/Display;

    iput-object p2, p0, Ljavax/microedition/lcdui/Display$1;->val$nextDisplayable:Ljavax/microedition/lcdui/Displayable;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static access$600(Ljavax/microedition/lcdui/Display$1;)Ljavax/microedition/lcdui/Display;
    .locals 1
    .parameter "x0"

    .prologue
    .line 494
    iget-object v0, p0, Ljavax/microedition/lcdui/Display$1;->this$0:Ljavax/microedition/lcdui/Display;

    return-object v0
.end method


# virtual methods
.method public run()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 497
    iget-object v0, p0, Ljavax/microedition/lcdui/Display$1;->this$0:Ljavax/microedition/lcdui/Display;

    invoke-static {v0}, Ljavax/microedition/lcdui/Display;->access$000(Ljavax/microedition/lcdui/Display;)Ljavax/microedition/lcdui/Displayable;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 498
    iget-object v0, p0, Ljavax/microedition/lcdui/Display$1;->this$0:Ljavax/microedition/lcdui/Display;

    invoke-static {v0}, Ljavax/microedition/lcdui/Display;->access$100(Ljavax/microedition/lcdui/Display;)Lorg/microemu/device/ui/EventDispatcher;

    move-result-object v0

    new-instance v1, Lorg/microemu/device/ui/EventDispatcher$HideNotifyEvent;

    iget-object v2, p0, Ljavax/microedition/lcdui/Display$1;->this$0:Ljavax/microedition/lcdui/Display;

    invoke-static {v2}, Ljavax/microedition/lcdui/Display;->access$100(Ljavax/microedition/lcdui/Display;)Lorg/microemu/device/ui/EventDispatcher;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    new-instance v3, Ljavax/microedition/lcdui/Display$1$1;

    invoke-direct {v3, p0}, Ljavax/microedition/lcdui/Display$1$1;-><init>(Ljavax/microedition/lcdui/Display$1;)V

    invoke-direct {v1, v2, v3}, Lorg/microemu/device/ui/EventDispatcher$HideNotifyEvent;-><init>(Lorg/microemu/device/ui/EventDispatcher;Ljava/lang/Runnable;)V

    invoke-virtual {v0, v1}, Lorg/microemu/device/ui/EventDispatcher;->put(Lorg/microemu/device/ui/EventDispatcher$Event;)V

    .line 509
    :cond_0
    iget-object v0, p0, Ljavax/microedition/lcdui/Display$1;->val$nextDisplayable:Ljavax/microedition/lcdui/Displayable;

    instance-of v0, v0, Ljavax/microedition/lcdui/Alert;

    if-eqz v0, :cond_1

    .line 510
    iget-object v1, p0, Ljavax/microedition/lcdui/Display$1;->this$0:Ljavax/microedition/lcdui/Display;

    iget-object v0, p0, Ljavax/microedition/lcdui/Display$1;->val$nextDisplayable:Ljavax/microedition/lcdui/Displayable;

    check-cast v0, Ljavax/microedition/lcdui/Alert;

    iget-object v2, p0, Ljavax/microedition/lcdui/Display$1;->this$0:Ljavax/microedition/lcdui/Display;

    invoke-static {v2}, Ljavax/microedition/lcdui/Display;->access$000(Ljavax/microedition/lcdui/Display;)Ljavax/microedition/lcdui/Displayable;

    move-result-object v2

    invoke-virtual {v1, v0, v2}, Ljavax/microedition/lcdui/Display;->setCurrent(Ljavax/microedition/lcdui/Alert;Ljavax/microedition/lcdui/Displayable;)V

    .line 529
    :goto_0
    return-void

    .line 523
    :cond_1
    iget-object v0, p0, Ljavax/microedition/lcdui/Display$1;->val$nextDisplayable:Ljavax/microedition/lcdui/Displayable;

    iget-object v1, p0, Ljavax/microedition/lcdui/Display$1;->this$0:Ljavax/microedition/lcdui/Display;

    invoke-virtual {v0, v1}, Ljavax/microedition/lcdui/Displayable;->showNotify(Ljavax/microedition/lcdui/Display;)V

    .line 524
    iget-object v0, p0, Ljavax/microedition/lcdui/Display$1;->this$0:Ljavax/microedition/lcdui/Display;

    iget-object v1, p0, Ljavax/microedition/lcdui/Display$1;->val$nextDisplayable:Ljavax/microedition/lcdui/Displayable;

    invoke-static {v0, v1}, Ljavax/microedition/lcdui/Display;->access$002(Ljavax/microedition/lcdui/Display;Ljavax/microedition/lcdui/Displayable;)Ljavax/microedition/lcdui/Displayable;

    .line 526
    iget-object v0, p0, Ljavax/microedition/lcdui/Display$1;->this$0:Ljavax/microedition/lcdui/Display;

    invoke-virtual {v0, v4}, Ljavax/microedition/lcdui/Display;->setScrollUp(Z)V

    .line 527
    iget-object v0, p0, Ljavax/microedition/lcdui/Display$1;->this$0:Ljavax/microedition/lcdui/Display;

    invoke-virtual {v0, v4}, Ljavax/microedition/lcdui/Display;->setScrollDown(Z)V

    .line 528
    iget-object v0, p0, Ljavax/microedition/lcdui/Display$1;->val$nextDisplayable:Ljavax/microedition/lcdui/Displayable;

    invoke-virtual {v0}, Ljavax/microedition/lcdui/Displayable;->repaint()V

    goto :goto_0
.end method
